Ai, a city of central Palestine, was the second Canaanite city taken by Israel (Josh. 7-8). The first attack on Ai was unsuccessful because of Achan's sin; the second attack succeeded, resulting in the total destruction of the city and its inhabitants.